﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DDW;
using AFSharedLibrary;

namespace UIDesigner.SurfaceProperties
{
    public class ConfirmOptions : ICloneable
    {
        string Text;
        string Caption;
        MessageBoxButtons Buttons;
        MessageBoxIcon Icon;
        MessageBoxDefaultButton DefaultButton;

        public ConfirmOptions()
        {

        }

        public ConfirmOptions(string strText)
        {
            Text = strText;
        }

        public ConfirmOptions(string strText, string strCaption)
        {
            Text = strText;
            Caption = strCaption;
        }

        public ConfirmOptions(string strText, string strCaption, MessageBoxButtons eButtons)
        {
            Text = strText;
            Caption = strCaption;
            Buttons = eButtons;
        }

        public ConfirmOptions(string strText, string strCaption, MessageBoxButtons eButtons, MessageBoxIcon eIcon)
        {
            Text = strText;
            Caption = strCaption;
            Buttons = eButtons;
            Icon = eIcon;
        }

        public ConfirmOptions(string strText, string strCaption, MessageBoxButtons eButtons, MessageBoxIcon eIcon, MessageBoxDefaultButton eDefaultButton)
        {
            Text = strText;
            Caption = strCaption;
            Buttons = eButtons;
            Icon = eIcon;
            DefaultButton = eDefaultButton;
        }

        public object Clone()
        {
            ConfirmOptions objConfirmOptions = new ConfirmOptions("");

            objConfirmOptions.Text = this.Text;
            objConfirmOptions.Caption = this.Caption;
            objConfirmOptions.Buttons = this.Buttons;
            objConfirmOptions.Icon = this.Icon;
            objConfirmOptions.DefaultButton = this.DefaultButton;

            return objConfirmOptions;
        }
    }
}
